<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>浮动</title>
		<style type="text/css">
			#div1{
				width: 400px;
				height: 400px;
				background-color: #7FFFD4;
				}
				#div2{
					width: 400px;
					height: 400px;
					background-color:salmon;
					float: right;
					}
					#div3{
						width: 400px;
						height: 400px;
						background-color:firebrick;
						left: 400px;
					}
					#div4{
						width: 400px;
						height: 400px;
						background-color:darkblue;
					}
		</style>
	</head>
	<body>
		<div id="div1"></div>
		<div id="div2"></div>
		<div id="div3"></div>
		<div id="div4"></div>
	</body>
</html>
